<?php
namespace Admin\Controller;



class SettingController extends BaseController {
    
    public function psd(){
       if ($this->login()){
            if (IS_POST){
                $User =D('User');
                $data =array(
                    'id'=>$_SESSION['auth']['id'],
                    'password'=>I('password'),
                );
                if ($User->create($data)){
                    if ($User->save()){
                        $this->success('修改成功',U('Index/index'));
                    }else {
                        $this->error('修改失败！');
                    }
                }else {
                    $this->error($User->getError());
                }
                return ;
            }
           
            
            
            $this->display();
       }
    }
   
    
    
    
    
    
    
    
    
    
    
}